package com.annotation.demo5;

/**
 * @ClassName Shark
 * @Description 鲨鱼
 * @Author Kx
 * @Date 2025/3/30 16:10
 * @Version 1.0
 */
@Sleep(value="失眠")
@Health(value="良")
public class Shark extends MarineAnimal {
    private String name;

    public Shark(String name) {
        super(name);
        this.name = name;
    }

    /***
     * @author: kx
     * @date: 2025/3/30 15:04
     * @description: 鲨鱼的吃方法
     */
    @Override
    public void eat() {
        super.eat();
    }

    /***
     * @author: kx
     * @date: 2025/3/31 15:18
     * @description: 鲨鱼的睡眠方法
    */
    @Override
    public void sleep() {
        super.sleep();
    }
}
